Pixelavo\Api\Ai\AdCopyGenerator B

Total Complexity 88
Dependencies 7
Dependents 1
Total lines 662
Lines of code 417
Logical lines of code 174
Comment lines 124
Methods 18
Properties 2

Methods 18

Method Rating Maintainability Complexity Lines of code
process_ai_response()
B
35 16 90
get_existing_product_details()
A
45 14 40
get_api_key()
A
49 9 30
get_text_status()
A
55 9 19
build_product_information()
A
52 8 25
get_base_prompt()
S
51 1 82
build_campaign_settings()
S
57 5 15
make_ai_request()
S
59 4 15
create_error_response()
S
60 4 13
process_provider_response()
S
64 4 11
generate_ad_copy()
S
53 3 22
extract_api_error_message()
S
63 3 10
format_text_variations()
S
61 2 13
log_error()
S
72 2 5
__construct()
S
82 1 3
initialize_ai_handlers()
S
70 1 6
transform_response()
S
65 1 9
get_prompt()
S
65 1 9